<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://www.sf.net/frails" prefix="fr"%>

<f:view>
	<h:form>
		<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
			<head>
				<meta http-equiv="pragma" content="no-cache" />
				<meta http-equiv="cache-control" content="no-cache" />
				<meta http-equiv="expires" content="0" />
				<link href="../css/iframe.css" rel="stylesheet" type="text/css" />
			</head>
			<body>
				<div id="container">
					<div class="titles">
						许可证权限管理
					</div>

					<h:dataTable value="#{$.permissions}" var="p" styleClass="tables">

						<h:column>
							<f:facet name="header">
								<h:outputText value="ID"></h:outputText>
							</f:facet>
							<h:outputText value="#{p.permissionId}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="次数限制"></h:outputText>
							</f:facet>
							<h:outputText value="#{p.count}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="有计时器的次数限制"></h:outputText>
							</f:facet>
							<h:outputText value="#{p.timedCount}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="开始时间"></h:outputText>
							</f:facet>
							<h:outputText value="#{p.timeStart}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="结束时间"></h:outputText>
							</f:facet>
							<h:outputText value="#{p.timeEnd}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="执行周期"></h:outputText>
							</f:facet>
							<h:outputText value="#{p.freeInterval}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="可访问节目的最长时间"></h:outputText>
							</f:facet>
							<h:outputText value="#{p.accumulated}" />
						</h:column>
					</h:dataTable>

					<h:commandButton value="添加权限" action="r:/license/licensePermissionCreate" immediate="true" styleClass="plat" />

					<fr:validatorScript clientValidation="true" />

				</div>
			</body>
		</html>
	</h:form>
</f:view>